<?php
use Illuminate\Routing\Router;

// 后台路由
//Route::any('/','LoginController@login');
Route::group([
    //'middleware'=>'access',
    //'namespace'=>'Admin',
    //'prefix'=>'admin'
],function (Router $router){
    // captcha
    $router->get('captcha/{id}','CodeController@captcha');
    // 登录资源
    $router->any('/','LoginController@login');
    // 登录验证资源
    $router->post('verification','LoginController@verification');
    // 首页资源
    $router->get('index','IndexController@index');

    $router->get('nav_left','TemplateController@nav_left');
    $router->get('welcome','IndexController@welcome');
    $router->get('error',function (){
        echo "<h1 style='color: red'>404 您没有权限访问！请联系管理员。</h1>";
    });
});